using System;
using System.IO;

namespace InfoCenter.Agent.Helpers
{
	static class Logger 
	{
		private static  string FullPath =
			System.AppDomain.CurrentDomain.BaseDirectory+"log.txt";
			                
         public static void Debug (string str)
         {
              DebugFormat (str);
         }
         public static void DebugFormat (string str, params object [] args)
         {
               using(StreamWriter writer = File.AppendText(FullPath))
			   {
                   writer.WriteLine(DateTime.Now.ToLongTimeString()+": "+ str, args);
               }
         }
         public static void Fatal (string str)
         {
               DebugFormat (str);
         }
       }
}
